package com.ljj.utli;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;

/**
 * 结果封装工具类
 * @author 
 *
 */
@JsonInclude(Include.NON_NULL) // 如果该属性为NULL则不参与序列化
public class Result {
	
	private Integer code;
	private String msg;
	private Object data;
	private Integer count;
	
	public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}

	public Integer getCount() {
		return count;
	}

	public void setCount(Integer count) {
		this.count = count;
	}

	public Result(Integer code, String msg, Object data, Integer count) {
		this.code = code;
		this.msg = msg;
		this.data = data;
		this.count = count;
	}

	public Result() {
	}

	public Result(Integer code, String msg) {
		this.code = code;
		this.msg = msg;
	}


	
}
